﻿using System.Drawing;

namespace KMSimulator.Model
{
    public class MouseDragAction : KMActionBase
    {
        /// <summary>
        /// 鼠标按键
        /// </summary>
        public MouseButton Button { get; set; } = MouseButton.LeftButton;

        /// <summary>
        /// 坐标路径
        /// </summary>
        public Point[] Path { get; set; } = [];

        public override KMActionType ActionType => KMActionType.MouseDrag;

        public override string GetActionType()
        {
            return "鼠标拖拽";
        }

        public override string ToString()
        {
            return $"鼠标拖拽, 按键: {Button}, 执行后延时: {Delay}";
        }
    }
}
